#include<stdio.h>
int main(void)
{
    /*********Begin*********/
    int m, n;
    scanf("%d %d", &m, &n);
    int arr[m][n];
    for (int i = 0; i < m; i++)
    {
        for (int j = 0; j < n; j++)
        {
            scanf("%d", &arr[i][j]);
        }
    }
    for (int i = 0; i < m; i++)
    {
        int max = -2147483648;
        int dex = 0;
        for (int j = 0; j < n; j++)
        {
            if (arr[i][j] > max)
            {
                max = arr[i][j];
                dex = j;
            }
        }
        int falg = 0;
        for (int c = 0; c < m; c++)
        {
            if (arr[c][dex] < max)
            {
                falg = 1;
                break;
            }
        }
        if (falg == 0)
        {
            printf("Array[%d][%d]=%d", i, dex, max);
            return 0;
        }
    }
    printf("None");
    /*********End**********/
    return 0;
}